import request from '@/utils/request'

// 查询实验设计列表
export function listDesign(query) {
  return request({
    url: '/experiment/design/list',
    method: 'get',
    params: query
  })
}

// 查询实验设计详细
export function getDesign(designId) {
  return request({
    url: '/experiment/design/' + designId,
    method: 'get'
  })
}

// 新增实验设计
export function addDesign(data) {
  return request({
    url: '/experiment/design',
    method: 'post',
    data: data
  })
}

// 修改实验设计
export function updateDesign(data) {
  return request({
    url: '/experiment/design',
    method: 'put',
    data: data
  })
}

// 删除实验设计
export function delDesign(designId) {
  return request({
    url: '/experiment/design/' + designId,
    method: 'delete'
  })
}
